#ifndef _SYNBLEPBUFFER_H
#define _SYNBLEPBUFFER_H

#define BLEP_DS_FACTOR 64 // BLEP table oversampling factor

namespace Synth
{

void BlepInit();

class BlepBuffer {
	double *buffer;  // circular output buffer
	int buffer_size; // buffer size
	int buffer_pos;  // current buffer position
	int nInit;		 // amount of initialized entries
public:
	BlepBuffer();
	void AddBlep(float offset, float amp);
	float Advance();
};

}  // namespace

#endif